package desgin.pattern.behavior.observer;

/**
 * 
 * @Type ConcreteSubject
 * @Desc 　具体主题角色类
 * @author Administrator
 * @date 2015年3月11日
 * @Version V1.0
 */
public class ConcreteSubject extends Subject {

    private String state;

    public void change(String newState) {
        state = newState;
        System.out.println("subject state is :" + state);
        this.nodifyObservers(newState);
    }
}
